<h2 class="heading">Class List</h2>
<?php if( count( $members > 0 ) ): ?>
<table class="memberlist" style="">
	<tr style="font-weight: bold; font-size: 13px; font-family: verdana;">
		<td class="studno" style="">Student Number</td>
		<td class="lastname" style="">Last Name</td>
		<td class="firstname" style="">First Name</td>
		<td class="middle-initial" style="">Middle Initial</td>
		<td class="last-visit" style="">Last Visit Date</td>
<?php 	if( $orgAdmin ) :  ?> 
		<td class="actions" style="">Actions</td>
<?php 	endif;?> 
	</tr>
<?php 	foreach( $members as $member ) :  ?> 
	<tr style="font-size: 11px; font-family: verdana;">
		<td<?php if( $member['admin_id'] !== NULL ) :?> style="color: #ff0;"<?php endif; ?>><?php echo $member['stud_no'] ?></td>
		<td<?php if( $member['admin_id'] !== NULL ) :?> style="color: #ff0;"<?php endif; ?>><?php echo ucwords( strtolower( $member['lastname'] )) ?></td>
		<td<?php if( $member['admin_id'] !== NULL ) :?> style="color: #ff0;"<?php endif; ?>><?php echo ucwords( strtolower( $member['firstname'] )) ?></td>
		<td<?php if( $member['admin_id'] !== NULL ) :?> style="color: #ff0;"<?php endif; ?>><?php echo ucwords( strtolower( $member['middlename'][0] )) . '.' ?></td>
		<td<?php if( $member['admin_id'] !== NULL ) :?> style="color: #ff0;"<?php endif; ?>><?php echo date('Y-m-d',strtotime($member['date'])) ?><?php if( (strtotime( $member['date'] ) < (gmmktime() - (30/*days*/ * 60 * 60 * 24)) ) ) echo '*' ?></td>
<?php 		if( $orgAdmin && $_SESSION['stud_no'] != $member['stud_no'] ) :  ?> 
		<td>
			(<a href="/org/view/<?php echo $name ?>/memberlist/remove/<?php echo $member['stud_no'] ?>">Remove</a>)
<?php 			if( $member['banned'] == 0 ) :  ?> 
			(<a href="/org/view/<?php echo $name ?>/ban/<?php echo $member['stud_no'] ?>">Ban</a>)
<?php				else: ?> 
			(<a href="/org/view/<?php echo $name ?>/memberlist/unban/<?php echo $member['stud_no'] ?>">Unban</a>)
<?php 			endif; ?> 
		</td>
		
<?php 		endif;?> 
	</tr>
<?php 	endforeach;?> 
</table>
<?php else: ?>
<p>No students yet.</p>
<?php endif; ?>
<div style="color: 0000">
<div><em>*an asterisk (*) denotes student has not been to the site in 30 days</em></div>
